project(libxfsm)
set(SOURCES
        xfsm-util.h
        xfsm-util.c
        xfsm-shutdown-common.h
)

add_library(${PROJECT_NAME}
        STATIC
        ${SOURCES}
)

set(deps)
if (${IS_ALONE_COMPILE})
	list(APPEND deps PkgConfig::XFCE4_UI)
        list(APPEND deps PkgConfig::XFCE4_UTIL)
        list(APPEND deps PkgConfig::XFCONF)
else()
        list(APPEND deps gtk-all-shared)
	list(APPEND deps libxfce4ui-2)
       	list(APPEND deps libxfce4util-shared)
       	list(APPEND deps vvxfconf-0)
endif()

target_link_libraries(${PROJECT_NAME}
        PUBLIC
        PkgConfig::X11
	${deps}
)


#
#if HAVE_OS_CYGWIN
#libxfsm_la_LDFLAGS =						\
#	-no-undefined
#endif
